﻿using System;
using NUnit.Framework;
using Microsoft.Practices.Unity;
using Rhino.Mocks;

namespace WebCrawler.Tests
{
    public class UrlMatcherTests : CrawlerTestFixture<CrawlerTestData>
    {
        [SetUp]
        public new void Setup()
        {
            Data = new CrawlerTestData("http://company.com");
        }
       
       [Test] public void Match_ShouldRecognizeUrls()
       {
           var matcher = new UrlMatcher();
           var urls = matcher.Match(Data.ResultHtml.Text);
           Assert.That(urls, Is.EqualTo(new []{Data.Url1, Data.Url2}));
       } 
    }
}